public class test { //数组拷贝
    public static void main1(String[] args) {
        int[] array = {1,2,3,4,5};
        int[] copy = new int[array.length];
        for (int i = 0; i <array.length ; i++) {
            copy[i] = array[i];
        }
        for (int i = 0; i <copy.length ; i++) {
            System.out.println(copy[i]);
        }
    }
}
